<script src="/parkinfo/js/jquery-1.7.2.min.js"></script>
<script src="/parkinfo/js/jquery.min.js"></script>
<link href="/parkinfo/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="/parkinfo/dist/css/AdminLTE.css">
<link rel="stylesheet" href="/parkinfo/dist/css/skins/skin-blue.min.css">
<link href="/parkinfo/css/xx_list_admin.css" rel="stylesheet"/>
<script src="/parkinfo/angular/angular.min.js"></script>
<script src="/parkinfo/angular/angular-animate.min.js"></script>
<script src="/parkinfo/angular/angular-cookies.min.js"></script>
<script src="/parkinfo/angular/angular-ui-router.min.js"></script>
<script src="/parkinfo/angular/ocLazyLoad.min.js"></script>
<script src="/parkinfo/angular/ui-bootstrap-tpls.min.js"></script>
<!-- <script src="/parkinfo/js/userManage.js?v=1.1"></script> -->
<!-- <script src="/parkinfo/script/parkUser.js?v=1.1"></script> -->
<script src="/parkinfo/script/parkUserAngular.js?v=1.1"></script>
<script src="/parkinfo/js/bootstrap.min.js"></script>
<script src="/parkinfo/js/utility.js"></script>
<script src="/parkinfo/js/service/textModalService.js"></script>
<!-- <script src="/parkinfo/script/reconciliation.js"></script> -->
<div class="" ng-app="parkUserApp" ng-controller="parkUserCtrl">
	<section class="content-header">
          <h1>
           用户管理
            <small></small>
          </h1>
    </section>
    <section class="content">
       <div class="row">
            <div class="col-xs-12">
              	<div class="box"> 
              		<div class="box-header">
	                  <h3 class="box-title"></h3>
	             	</div>	           
	             				
	             <div class="box-body">
					<div class="btn-group">
		                		<button  ng-click="refreshUser()" type="button" class="btn bg-purple"><span class="glyphicon glyphicon-refresh"></span> 刷新</button>
		                		<!-- <button   ng-click="insertUser()" type="button" class="btn bg-olive"><span class="glyphicon glyphicon-pencil"></span> 用户开卡</button> -->
		                		<button  ng-click="updateUser()" type="button" class="btn bg-navy"><span class="glyphicon glyphicon-edit"></span>修改密码</button>
		                		<!-- <button   ng-click="deleteUser()" type="button" class="btn  bg-orange"><span class="glyphicon glyphicon-remove"></span> 删除用户</button>
								<button  ng-click="updateUserPark()" type="button" class="btn  bg-olive"><span class="glyphicon glyphicon-edit"></span> 所属停车场</button> -->
		                	</div>	
							<!-- <div class="pull-right">
							
								<select class="form-control" style="padding:1px;font-size:14px;height:35px" ng-options="park.id as park.name for park in parks" ng-model="selectedParkid" ng-change="selectChanged(selectedParkid)">
	                		#if($isAdmin) <option value=-1>所有停车场</option>#end           		
	                	</select>
	                	</div> -->
	                	<!-- <div class="pull-right">
						 <select style="display:none" id="get_Park" class="form-control" style="padding:1px;font-size:14px;height:35px" id="searchPark">
	                		          		#foreach( $park in $parks)
												<option value=$park.id>$park.name</option>
											#end
	                	</select>
	                	<select class="form-control" style="padding:1px;font-size:14px;height:35px" ng-options="park.id as park.name for park in parks" ng-model="selectedParkid" ng-change="selectChanged(selectedParkid)">
	                		#if($isAdmin) <option value=-1>所有停车场</option>#end           		
	                	</select>
	                	</div> -->
	                	
	                    <br/>   
	                    <br/>    	
						<div>
							  <table class="table table-bordered table-hover table-condensed" style="font-size:12px">
					          
					            <tr>					            
					             <th><span style=""><input type="checkbox" /></div></th>
										<th ><span style="padding-left:15%">Id</div></th>								
										<th><span style="padding-left:15%">用户名</div></th>
										<th><span style="padding-left:15%">密码</div></th>						
					            </tr>
					          
					          <tbody id="parkBody"></tbody>
							  <tr ng-repeat="user in users">
							  <td ><input type="checkbox" ng-model="user.checked" ng-click="selectChange($index)"/></td>
							  <td ng-bind="user.id"></td>
							  <td ng-bind="user.username"></td>
							  <td ng-bind="user.password"></td>
							  </tr>
					          </table>
    					</div>
    				<div class="box-footer clearfix">
      					<div id='pagination'></div>
      				</div>
      			</div>
            </div>
        </div>
        </div>
</section>
						





<script  type="text/ng-template" id="modifyUser">

<div class="modal-header">
    <button type='button' class='close' ng-click="close()" aria-hidden='true'>
        &times;
    </button>
    <h4 class="modal-title" >用户管理</h4>

</div>

<div class="modal-body">
    <form class="form-horizontal" role="form">
        <div class="form-group">
            <label class="col-sm-2 control-label" >用户名</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" placeholder="请输入用户名" ng-model="tempUser.username">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label" >密码</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" placeholder="请输入密码" ng-model="tempUser.password">
            </div>
        </div>
        <div class="alert alert-info" ng-show="(showResult || showLoader)">
            <span  ng-show='showLoader'  skip-ng-show= "yes" ng-activity-indicator= "CircledGrey"></span>
            <span ng-show='showResult'>{{result}}</span>
        </div>

    </form>
</div>

<div class="modal-footer">
    <button ng-click="close()" type="button" class="btn btn-default" data-dismiss="modal">
        取消
    </button>
    <button ng-click="submit()"  type="button" class="btn btn-primary">
        确定
    </button>
</div>
</script>
</div>